package com.example.seata.order.feign;

import com.example.seata.order.entity.StorageTbl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName : StockFeignClient
 * @Description : 仓储的feign客户端
 * @Author : tianshuo
 * @Date: 2021-05-15 21:27
 */
//@RequestMapping("/stock")
@FeignClient(value = "seata-stock")
public interface StockFeignClient {

    @PostMapping("/stock/deduct")
    public String deduct(@RequestBody StorageTbl storageTbl);
}

